package com.server.questionbank.snframe.domain.Course.Result;

import com.server.questionbank.snframe.domain.Course.Resource.CourseFiles;
import com.server.questionbank.snframe.domain.Course.Resource.CourseResource;
import com.server.questionbank.snframe.domain.User.TUser;
import lombok.Data;

import java.util.List;

@Data
public class CourseResourceInfo extends CourseResource {
    public CourseResourceInfo(CourseResource courseResource) {
        this.setResourceId(courseResource.getResourceId());
        this.setCourseId(courseResource.getCourseId());
        this.setResourceName(courseResource.getResourceName());
        this.setDownloadCount(courseResource.getDownloadCount());
        this.setUploadUserId(courseResource.getUploadUserId());
        this.setCreateDate(courseResource.getCreateDate());
        this.setUpdateDate(courseResource.getUpdateDate());
    }
    public CourseResourceInfo() { }
    private Long fileCount;
    private TUser uploadUser;
    private List<CourseFiles> fileList;
}
